<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
		<link rel="stylesheet" href="js/Cesium/Widgets/widgets.css" />
        <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
		<script src="js/Cesium/Cesium.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
		<style>
			html,body{
				margin: 0;
				padding: 0;
				height: 100%;
				width: 100%;
			}
			#contanter{
				width:100%;
				height:100%
			}    
			/* 去除logo信息 */	
			.cesium-widget-credits{ 
				display:none!important; 
				visibility:hide!important; 
			} 
		</style>
    </head>
    <body>
		<div id="contanter"></div>
		<script>
			var viewer = new Cesium.Viewer("contanter",{
					animation: false,  //是否显示动画控件
		            baseLayerPicker: false, //是否显示图层选择控件
		            geocoder: true, //是否显示地名查找控件
		            timeline: false, //是否显示时间线控件
		            sceneModePicker: true, //是否显示投影方式控件
		            navigationHelpButton: false, //是否显示帮助信息控件
		            infoBox: true,  //是否显示点击要素之后显示的信息
					// 加载地形数据
					// terrainProvider: new Cesium.CesiumTerrainProvider({
					// 	url: Cesium.IonResource.fromAssetId(3956)
					// })
				})
				
				// 加载天地图
				var TDTUrl = {
					TDT_IMG_C:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0" +
					    "&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}" +
					    "&style=default&format=tiles&tk=5d27dc75ca0c3bdf34f657ffe1e9881d"  //在线天地图影像服务地址(经纬度)
					,TDT_VEC_C:"http://{s}.tianditu.gov.cn/vec_c/wmts?service=wmts&request=GetTile&version=1.0.0" +
						"&LAYER=vec&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}" +
						"&style=default&format=tiles&tk=5d27dc75ca0c3bdf34f657ffe1e9881d"   //在线天地图矢量地图服务(经纬度)
					,TDT_CIA_C:"http://{s}.tianditu.gov.cn/cia_c/wmts?service=wmts&request=GetTile&version=1.0.0" +
						"&LAYER=cia&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}" +
						"&style=default&format=tiles&tk=5d27dc75ca0c3bdf34f657ffe1e9881d"      //在线天地图影像中文标记服务(经纬度)
					,TDT_CVA_C:"http://{s}.tianditu.gov.cn/cva_c/wmts?service=wmts&request=GetTile&version=1.0.0" +
						"&LAYER=cva&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}" +
						"&style=default&format=tiles&tk=5d27dc75ca0c3bdf34f657ffe1e9881d"       //在线天地图矢量中文标记服务(经纬度)
				}
				
				var tdtCva=new Cesium.WebMapTileServiceImageryProvider({
					url: TDTUrl.TDT_IMG_C,
					layer: "tdtCva",
					style: "default",
					format:  "tiles",
					tileMatrixSetID: "c",
					subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],
					tilingScheme:new Cesium.GeographicTilingScheme(),
					tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],
					maximumLevel:18,
					show: false
				});
				var tdtCvaC=new Cesium.WebMapTileServiceImageryProvider({
					url: TDTUrl.TDT_CIA_C,
					layer: "tdtCva",
					style: "default",
					format:  "tiles",
					tileMatrixSetID: "c",
					subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],
					tilingScheme:new Cesium.GeographicTilingScheme(),
					tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],
					maximumLevel:18,
					show: false
				});
				var layers = viewer.imageryLayers;
				layers.addImageryProvider(tdtCva);
				layers.addImageryProvider(tdtCvaC);
		</script>
    </body>
</html>